Skip to main content

OMEX Extender Response

🔄📦 OMEX Extender Response for Orders

Responses are sent to the registered Webhook.

FieldValue
NameWebhook response for order
DescriptionOnline order response to the third party
MethodPOST

📩 Request Parameters

ParameterData TypeDescription
MessageTypevarchar(10)ORD_NRML
OrderNumberInt640 for new order entry; fill for modification/cancellation
Exchangevarchar(10)Exchange for which order is to be placed
ScripCodeIntScrip Code
Symbolvarchar(20)Exchange provided Security symbol
Seriesvarchar(3)Exchange provided Security Series
InstrumentNamevarchar(20)Instrument name
ExpiryDatevarchar(10)Expiry Date
StrikePricefloatApplicable for options only
Option_Typevarchar(2)Option Type — applicable for options only
Buy_SellInt1 = Buy, 2 = Sell
OrderOriginalQtyintTotal quantity of an order
PendingQtyIntPending quantity
TradedQTYintTraded Quantity
OrderPricefloatPrice in paise at which the order is placed
OrderStatusIntOrder status
Reasonvarchar(255)Rejection Reason
OrderEntryTimeDateTimeValidity
LastModifiedTimeDateTimeDate and Time in 24-hour format (e.g., 15Jun2019 15.25.15)
UserRemarksvarchar(10)User Remarks
Miscvarchar(10)Values: SPO-LMT, SPO-MKT, PO-MKT, PO-LMT
MessageSequenceNumberInt64Running Message Sequence Number. For latest order status, always use max sequence number.
sThirdpartyUserIdvarchar(30)Third party UserId
sThirdpartyProductCodevarchar(30)Product Code as provided by third party
sInitiatorAppTokenvarchar(30)Apptoken assigned to Third party
sThirdpartyRecoIdvarchar(10)Token assigned by Third party with basket details
sPartnerIdvarchar(6)Partner reference who received the trades
UniqueCodevarchar(12)Order ID
UCCvarchar(12)Client ID
DQIntDisclosed Qty
DQRemainingIntDisclosed Qty Remaining
TriggerPriceintTrigger Price
OrderTypeIntOrder Type (see Annexure)
DaysIntDays of GTD
ProCliInt1 = Client, 2 = Pro
CP_IDvarchar(30)
Productvarchar(2)Product Type
SpreadFlagint
SpreadPriceint
AMOOrderIDvarchar(30)
GTDOrderStatusint
LegIndicatorintLeg Indicator
MarketTypeintMarket Type
OrderValidityintOrder Validity (see Annexure)

Example Order Webhook Response

{
"MessageType": "ORD_NRML",
"OrderNumber": "789",
"Exchange": "3",
"ScripCode": "532755",
"Symbol": "CCCC",
"Series": "A",
"InstrumentName": "",
"ExpiryDate": "",
"StrikePrice": 0,
"Option_Type": "",
"Buy_Sell": "1",
"OrderOriginalQty": 1,
"PendingQty": 1,
"TradedQTY": "0",
"OrderPrice": 49975,
"OrderStatus": 5,
"Reason": "",
"OrderEntryTime": "05-May-2020 20.56.37",
"LastModifiedTime": "05-May-2020 20.56.37",
"UserRemarks": "12345ABC0000000001",
"Misc": "MKT",
"MessageSequenceNumber": "10201250000271410",
"sThirdpartyId": "XXXXXXX",
"sThirdpartyProductCode": "XXXXXXX",
"sInitiatorAppToken": "xxxx-18990f355d4",
"sThirdpartyRecoId": "XXXXXXXXXX",
"sPartnerId": "XXXXXX",
"UniqueCode": "XXXXXXXXXXXX",
"UCC": "XXXXXXXXXXXX",
"DQ": 0,
"DQRemaining": 0,
"TriggerPrice": 0,
"OrderType": 1,
"MarketType": 1,
"OrderValidity": "1",
"Days": "0",
"ProCli": "1",
"CP_ID": "",
"Product": "M",
"LegIndicator": 0,
"SpreadFlag": 0,
"SpreadPrice": 0,
"AMOOrderID": "",
"GTDOrderStatus": 0
}

📏📄 OMEX Extender Response for Trade

Responses are sent to the registered Webhook.

FieldValue
NameWebhook response for order
DescriptionOnline trade response to the third party
MethodPOST

📝 Request Parameters

ParameterData TypeDescription
MessageTypevarchar(10)ORD_NRML
TradeNumberIntTrade No
OrderNumberInt640 for new order; fill for modification/cancellation
Exchangevarchar(10)Exchange for which order is to be placed
ScripCodeIntScrip Code
Symbolvarchar(20)Exchange provided Security symbol
Seriesvarchar(3)Exchange provided Security Series
InstrumentNamevarchar(20)Instrument name
ExpiryDatevarchar(10)Expiry Date
StrikePricefloatStrike price in multiples of 100 — applicable for options only
Option_Typevarchar(2)Option Type — applicable for options only
Buy_SellInt1 = Buy, 2 = Sell
TradeQtyIntTraded Quantity
TradedPriceintTrade price in paisa (e.g., 45065 in multiples of 100)
OrderOriginalQtyintTotal Quantity of an Order
PendingQtyIntPending quantity
QuantityTradedTodayintTotal quantity traded today including current trade
TradeTimedatetime24-hour format (e.g., 15Jun2019 15.25.15)
OrderTimedatetime24-hour format
OrderLastModifiedTimeDateTimeTime when order was confirmed
UserRemarksvarchar(10)User Remarks
Miscvarchar(10)Values: SPO-LMT, SPO-MKT, PO-MKT, PO-LMT
MessageSequenceNumberInt64Running Message Sequence Number
OrderPriceintOrder Price in paisa
sThirdpartyUserIdvarchar(30)Third party UserId
sThirdpartyProductCodevarchar(30)Product Code as provided by third party
sInitiatorAppTokenvarchar(30)Apptoken assigned to Third party
sThirdpartyRecoIdvarchar(10)Token assigned by Third party with basket details
sPartnerIdvarchar(6)Partner reference who received the trades
UniqueCodevarchar(12)Order ID
UCCvarchar(12)Client ID
DQIntDisclosed Qty
DQRemainingIntDisclosed Qty Remaining
OrderTypeIntOrder Type
DaysIntDays of GTD
ProCliInt1 = Client, 2 = Pro
CP_IDvarchar(30)
Productvarchar(2)Product Type
LegIndicatorintLeg Indicator

Example Trade Webhook Response

{
"MessageType": "TRD_MSG",
"TradeNumber": "456",
"OrderNumber": "456",
"Exchange": 1,
"ScripCode": 22,
"Symbol": "ACC",
"Series": "EQ",
"InstrumentName": "",
"ExpiryDate": "",
"StrikePrice": 0,
"Option_Type": "",
"Buy_Sell": "1",
"TradeQty": "10",
"TradedPrice": "10000",
"OrderOriginalQty": 10,
"PendingQty": "0",
"QuantityTradedToday": 10,
"TradeTime": "14-May-2020 13.24.28",
"OrderTime": "14-May-2020 13.24.28",
"OrderLastModifiedTime": "14-May-2020 13.24.28",
"UserRemarks": "12345ABC0000000001",
"Misc": "",
"MessageSequenceNumber": 24,
"OrderPrice": 4456,
"sThirdpartyId": "XXXXXXX",
"sThirdpartyProductCode": "XXXXXXX",
"sInitiatorAppToken": "xxxx-18990f355d4",
"sThirdpartyRecoId": "XXXXXXXXXX",
"sPartnerId": "XXXXXX",
"UniqueCode": "XXXXXXXXXXXX",
"UCC": "XXXXXXXXXXXX",
"DQ": 0,
"DQRemaining": 0,
"OrderType": 1,
"Days": "0",
"ProCli": "1",
"CP_ID": "",
"Product": "M",
"LegIndicator": 0
}